import { TOKEN_KEY } from '@/constants'
import cookies from 'js-cookie'
export const getLocalToken = () => {
  return cookies.get(TOKEN_KEY)
}

export const setLocalToken = (token: string) => {
  cookies.set(TOKEN_KEY, token,{expires:7})
}

export const removeLocalToken = () => {
  cookies.remove(TOKEN_KEY)
}
